package com.dhcc.bpm.modules.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName ServiceOutside
 * @Description 后端服务外部调用表实体类
 * @Author daina
 * @Date 2020/2/25 15:22
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_service_outside")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ServiceOutside对象", description = "后端服务外部调用表")
public class ServiceOutside extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 后端服务ID
	*/
		@ApiModelProperty(value = "后端服务ID")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long opcBackserviceId;
	/**
	* 请求IP
	*/
		@ApiModelProperty(value = "请求IP")
		private String reqIp;
	/**
	* 访问方法
	*/
		@ApiModelProperty(value = "访问方法")
		private Integer accessMethod;
	/**
	* 请求路径
	*/
		@ApiModelProperty(value = "请求路径")
		private String reqPath;
	/**
	* 请求端口
	*/
		@ApiModelProperty(value = "请求端口")
		private Integer reqPort;
	/**
	* 编码
	*/
		@ApiModelProperty(value = "编码")
		private Integer encode;
	/**
	* 负载均衡
	*/
		@ApiModelProperty(value = "负载均衡")
		private Integer loadBalanc;
	/**
	* 权重
	*/
		@ApiModelProperty(value = "权重")
		private Integer weight;
	/**
	* 描述
	*/
		@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
		private String describe;

}
